/* 课程 */
import { getStorage, setStorage, storePasted, setStoreTime } from '@/utils/storage'

/**
 * 课程列表，粗略信息
 */
const courses = [
  {
    id: 2,
    name: '毛绒玩偶升级改造计划',
    tags: [3, 7, 8],
    img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/course/20220308165049237-Group 38.png'
  },
  {
    id: 4,
    name: '玩具交响乐模型玩具改造',
    tags: [4, 9, 8],
    img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/course/20220308165049237-Group 19.png'
  },
  {
    id: 3,
    name: '改造八音盒',
    tags: [5, 2, 9],
    img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220502144913516-Group 130.png'
  },
  {
    id: 6,
    name: '飞镖玩具改造',
    tags: [6, 7, 10],
    img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220502144913517-Group 129.png'
  },
  {
    id: 1,
    name: '赛车大比拼-汽车改造',
    tags: [1, 7, 9],
    img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/course/20220308165049237-Group 43.png'
  },
  {
    id: 5,
    name: '手办涂鸦秀',
    tags: [2, 10],
    img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220502144913516-Group 42.png'
  },
]

/* 初始化本地数据 */
if (storePasted()) {
  setStorage('courses', JSON.stringify(courses))
  setStorage('courseAchievement', JSON.stringify([]))
  console.log('重新缓存课程')
}

/**
 * 课程详情
 */
export const courseDetail = {
  1: {
    id: 1,
    bgMap: {
      img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503111407256-Group 58 (5).png',
      name: '赛车大比拼',
      nameColor: '#fff',
      nameShadowColor: '#f1b3ad',
      desc: '赛车模型与吸铁石结合，化身为实用小工具.\n教程简单易上手，快来试试吧～',
      descColor: '#03372E',
      tags: [1, 7, 9],
      collectBtnColor: '#00C9A9',
      collectBtnBgColor: 'rgba(255, 255, 255, 0.4)',
      collectBtnBorder: '1px solid #00C9A9',
      backIconColor: '#fff'
    },
    adaptToys: [
      { name: '交通工具玩具', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/202205021652048-WX20211113-212132.png' },
    ],
    size: '玩具长度<8cm\n重量<200g',
    materials: [
      { name: '小吸铁石*2', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220502165327288-Group 178.png' },
      { name: '模型胶水', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/materials/%E2%80%94Pngtree%E2%80%94super%20or%20moment%20glue%20tube_3999301%201.png' },
    ],
    works: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220502165327289-WechatIMG119 2.png'
    ],
    question: [
      { title: '完成改造需要花多久时间？', answer: '6-10min' },
      { title: '零手工基础的小朋友可以参加吗？', answer: '可以' },
    ],
    teachingVideo: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/赛车/赛车-1.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/赛车/赛车-2.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/赛车/赛车-3.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/赛车/赛车-4.mp4',
    ],
    completeVideo: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/%E8%B5%9B%E8%BD%A6-%E5%90%88%E9%9B%86.mp4',
    isSetting: false, // 是否定制
    isCollection: false, // 是否收藏
  },
  2: {
    id: 2,
    bgMap: {
      img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/2022050311115463-Group 83 (1).png',
      name: '毛绒玩偶升级改造计划',
      nameColor: '#fff',
      nameShadowColor: '#f1b3ad',
      desc: '赛车模型与吸铁石结合，化身为实用小工具.\n教程简单易上手，快来试试吧～',
      descColor: '#fff',
      tags: [1, 7, 9],
      collectBtnColor: '#ffffff',
      collectBtnBgColor: 'transparent',
      collectBtnBorder: '1px solid #FFFFFF',
      backIconColor: '#fff'
    },
    adaptToys: [
      { name: '毛绒公仔', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/toys/20220308094858556-WX20211113-212128%20%281%29.png' },
    ],
    size: '可改造区域大于\n103 *68* 35\n毫米',
    materials: [
      { name: '陪伴模块', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503101808233-Group 56 (1).png', clickCb: () => { Vue.prototype.$pushTo('Customization', { demo: 'demo1' }) } },
      { name: '剪刀针线', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/materials/%E2%80%94Pngtree%E2%80%94hand-painted%20doodle%20needle%20box%20free_4656722%201.png' },
      { name: '模型胶水', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/materials/%E2%80%94Pngtree%E2%80%94super%20or%20moment%20glue%20tube_3999301%201.png' },
    ],
    works: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/works/Rectangle%2017.png',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/works/Rectangle%2018.png',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/works/Rectangle%2019.png',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/works/WechatIMG119%201.png'
    ],
    question: [
      { title: '完成改造需要花多久时间？', answer: '30-45分钟' },
      { title: '零手工基础的小朋友可以参加吗？', answer: '可以，但建议在家长陪同与帮助下完成。' },
      { title: '陪伴模块可以定制哪些内容？', answer: '聊天对话、读物故事、音乐等音频内容。' },
      { title: '玩具改造到一半不想改造了怎么办？', answer: '可以直接跳至步骤5，对毛绒玩具的开口进行缝合完整。' },
    ],
    teachingVideo: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/毛绒玩具/毛绒玩具-1.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/毛绒玩具/毛绒玩具-2.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/毛绒玩具/毛绒玩具-3.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/毛绒玩具/毛绒玩具-4.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/毛绒玩具/毛绒玩具-5.mp4'
    ],
    completeVideo: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/%E6%AF%9B%E7%BB%92%E7%8E%A9%E5%85%B7-%E5%90%88%E9%9B%86.mp4',
    isSetting: false, // 是否定制
    isCollection: false, // 是否收藏
  },
  3: {
    id: 3,
    bgMap: {
      img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/202205031137401-Group 58 (8).png',
      name: '改造八音盒',
      nameColor: '#DE8B62',
      nameShadowColor: '#fff',
      desc: '给玩腻了的八音盒重新“装修”一下吧',
      descColor: '#00493E',
      tags: [5, 2, 9],
      collectBtnColor: '#00C9A9',
      collectBtnBgColor: 'rgba(255, 255, 255, 0.4)',
      collectBtnBorder: '1px solid #00C9A9',
      backIconColor: '#00C9A9'
    },
    adaptToys: [
      { name: '乐器玩具', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503113036654-WX20211113-212117.png' },
    ],
    size: '< 80 *80 毫米',
    materials: [
      { name: '饰品/装饰', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503113036654-Group 56 (2).png', clickCb: () => { Vue.prototype.$pushTo('Store') } },
      { name: '模型胶水', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/materials/%E2%80%94Pngtree%E2%80%94super%20or%20moment%20glue%20tube_3999301%201.png' },
    ],
    works: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/2022050311344863-WechatIMG119 1.png',
    ],
    question: [
      { title: '完成改造需要花多久时间？', answer: '由具体改造的方案决定。' },
      { title: '零手工基础的小朋友可以参加吗？', answer: '可以，尽情发挥你的想象力吧～' },
      { title: '3. 没有八音盒有代替解决方案吗？', answer: '可在商城中购买八音盒材料。' },
    ],
    teachingVideo: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/八音盒/八音盒-1.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/八音盒/八音盒-2.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/八音盒/八音盒-3.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/八音盒/八音盒-4.mp4'
    ],
    completeVideo: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/%E5%85%AB%E9%9F%B3%E7%9B%92-%E5%90%88%E9%9B%86.mp4',
    isSetting: false, // 是否定制
    isCollection: false, // 是否收藏
  },
  4: {
    id: 4,
    bgMap: {
      img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503114114660-Group 91.png',
      name: '玩具舞台模型改造',
      nameColor: '#ffffff',
      nameShadowColor: '#69C8C2',
      desc: '将你的模型玩具与有趣的玩具舞台结合改造\n解锁播放、对话、对战、问答模式玩法\n一起来让玩具们互动起来吧～',
      descColor: '#fff',
      tags: [4, 9, 8],
      collectBtnColor: '#ffffff',
      collectBtnBgColor: 'transparent',
      collectBtnBorder: '1px solid #FFFFFF',
      backIconColor: '#fff'
    },
    adaptToys: [
      { name: '积木乐高', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/2022050311424920-WX20211113-212113.png' },
      { name: '模型手办', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503114657335-WX20211113-213303 1.png' },
    ],
    size: '模型玩具\n底面积\n＜90*60 mm',
    materials: [
      { name: '陪伴模块', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503101808233-Group 56 (1).png', clickCb: () => { Vue.prototype.$pushTo('Customization', { demo: 'demo2' }) } },
      { name: '模型胶水', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/materials/%E2%80%94Pngtree%E2%80%94super%20or%20moment%20glue%20tube_3999301%201.png' },
    ],
    works: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503114337427-Rectangle 18.png',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503114337427-WechatIMG119 1 (1).png'
    ],
    question: [
      { title: '完成改造需要花多久时间？', answer: '45-60分钟' },
      { title: '零手工基础的小朋友可以参加吗？', answer: '可以，改造操作主要为积木搭建。' },
      { title: '玩具舞台可以定制哪些内容？', answer: '玩具舞台具有播放模式、对话模式、对战模式、百科模式，详见模块定制页面。' },
    ],
    teachingVideo: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/玩具舞台/玩具舞台-1.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/玩具舞台/玩具舞台-2.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/玩具舞台/玩具舞台-3.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/玩具舞台/玩具舞台-4.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/玩具舞台/玩具舞台-5.mp4',
    ],
    completeVideo: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/%E7%8E%A9%E5%85%B7%E8%88%9E%E5%8F%B0-%E5%90%88%E9%9B%86.mp4',
    isSetting: false, // 是否定制
    isCollection: false, // 是否收藏
  },
  5: {
    id: 5,
    bgMap: {
      img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503114502583-Group 58 (9).png',
      name: '手办涂鸦秀',
      nameColor: '#fff',
      nameShadowColor: '#1F3990',
      desc: '快来给你的手办玩具换上新装吧～',
      descColor: '#fff',
      tags: [2, 10],
      collectBtnColor: '#ffffff',
      collectBtnBgColor: 'transparent',
      collectBtnBorder: '1px solid #FFFFFF',
      backIconColor: '#fff'
    },
    adaptToys: [
      { name: '模型手办', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503114657335-WX20211113-213303 1.png' },
    ],
    size: '不限',
    materials: [
      { name: '丙烯颜料', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503113036654-Group 56 (2).png', clickCb: () => { Vue.prototype.$pushTo('Store') } },
    ],
    works: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503114748298-WechatIMG119 2 (1).png',
    ],
    question: [
      { title: '完成改造需要花多久时间？', answer: '由具体改造的方案决定。' },
      { title: '零手工基础的小朋友可以参加吗？', answer: '可以，尽情发挥你的想象力吧～' },
      { title: '手办涂鸦效果不理想怎么办？', answer: '可以使用热水将颜料清洗，晾干后恢复原样或重新涂鸦' },
    ],
    teachingVideo: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/涂鸦/涂鸦-1.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/涂鸦/涂鸦-2.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/涂鸦/涂鸦-3.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/涂鸦/涂鸦-4.mp4',
    ],
    completeVideo: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/%E6%B6%82%E9%B8%A6-%E5%90%88%E9%9B%86.mp4',
    isSetting: false, // 是否定制
    isCollection: false, // 是否收藏
  },
  6: {
    id: 6,
    bgMap: {
      img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503114852731-Group 58 (10).png',
      name: '飞镖改造',
      nameColor: '#fff',
      nameShadowColor: '#3D5B71',
      desc: '兵器玩具太无趣？来试试与其他物件结合的\n功能性改造吧～',
      descColor: '#fff',
      tags: [6, 7, 10],
      collectBtnColor: '#ffffff',
      collectBtnBgColor: 'transparent',
      collectBtnBorder: '1px solid #FFFFFF',
      backIconColor: '#fff'
    },
    adaptToys: [
      { name: '武器兵器', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503115002888-WX20211113-212123.png' },
    ],
    size: '易于切割材质：\n软质塑料、纸质等',
    materials: [
      { name: '任何想被粘黏的物体', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503115103121-Group 179.png' },
      { name: '模型胶水', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/materials/%E2%80%94Pngtree%E2%80%94super%20or%20moment%20glue%20tube_3999301%201.png' },
      { name: '锯条', img: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503115103121-Subtract.png' },
    ],
    works: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/20220503115206807-WechatIMG119 2 (2).png',
    ],
    question: [
      { title: '完成改造需要花多久时间？', answer: '30分钟左右' },
      { title: '零手工基础的小朋友可以参加吗？', answer: '不建议，因为需要使用到锯条锋利的工具。' },
    ],
    teachingVideo: [
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/飞镖/飞镖-1.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/飞镖/飞镖-2.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/飞镖/飞镖-3.mp4',
      'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/飞镖/飞镖-4.mp4',
    ],
    completeVideo: 'https://aha-public-1301319986.cos.ap-shanghai.myqcloud.com/static_file/yuping/%E9%A3%9E%E9%95%96-%E5%90%88%E9%9B%86.mp4',
    isSetting: false, // 是否定制
    isCollection: false, // 是否收藏
  }
}

/**
 * 课程标签
 */
export const tags = {
  1: { id: 1, name: '交通工具', bgColor: '#F0FFFA', color: '#188476' },
  2: { id: 2, name: '模型手办', bgColor: '#E4E5FA', color: '#1E30CF' },
  3: { id: 3, name: '毛绒公仔', bgColor: '#FAF1E6', color: '#A56300' },
  4: { id: 4, name: '积木乐高', bgColor: '#FFF0F0', color: '#A52800' },
  5: { id: 5, name: '乐器玩具', bgColor: '#FAF9E4', color: '#CFA81E' },
  6: { id: 6, name: '武器兵器', bgColor: '#FFF0F0', color: '#A52800' },
  7: { id: 7, name: '功能性', bgColor: '#E5EFFA', color: '#1F6DBC' },
  8: { id: 8, name: '智能化', bgColor: '#F5F3FE', color: '#5E3B97' },
  9: { id: 9, name: '趣味化', bgColor: '#F0FBE9', color: '#5B8B1F' },
  10: { id: 10, name: '艺术性', bgColor: '#F0FBE9', color: '#5B8B1F' },
}
